<div xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     xmlns:c="http://java.sun.com/jsp/jstl/core"
     class="menu-wrapper">

    <h:panelGroup render="#{currentView.currentModule != null}">
        <ul>
            <ui:repeat value="#{currentView.pageList}" var="modulePage" varStatus="modulePageindex">
                <ui:param name="cssClass"
                          value="#{(param['tab'] == modulePage.code) ? 'page-menu-active' :''}"/>
                <ui:param name="pageName" value="#{modulePage.name}"/>

                <li title="#{pageName}" class="#{cssClass}">
                    <h:panelGroup layout="block" rendered="#{cssClass != ''}">
                        <div>
                            <span class="tab">
                                <span>#{pageName}</span>
                            </span>
                        </div>
                    </h:panelGroup>
                    <h:link title="#{pageName}"
                                   outcome="/modules/#{currentView.currentModule.code}/index"
                                   rendered="#{cssClass == ''}">
                                <span class="tab">
                                    <span>#{pageName}</span>
                                </span>
                        <f:param name="tab" value="#{modulePage.code}"/>
                    </h:link>
                </li>
            </ui:repeat>
        </ul>
    </h:panelGroup>
    <!--<h:panelGroup render="#{moduleView.currentModule == null or moduleView.pageList.empty}">-->
    <!--</h:panelGroup>-->
</div>